﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using FrameWork.Design;

namespace ScreenMonitor
{
    [Serializable]
    public class TestClass
    {        
        [Browsable(true)]
        [ReadOnly(false)]
        [TypeConverter(typeof(NetworkInterfaceConverter))]
        public string MyProperty { get; set; }

    }

    public class TestTypeConventer:TypeConverter
    {
        public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
        {
            return true;
        }
        public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            List<string> vlist=new List<string>();
            vlist.Add("sdasdasd");
            vlist.Add("sadasdfadfddf");
            TypeConverter.StandardValuesCollection col = new StandardValuesCollection(vlist);
            return col;
        }
    }
}
